import java.io.*;
public class GoodsDemo{
    public static void main(String[] args){
      /* 创建对象 */
      Goods good1 = new Goods( "paper" ,1.0, 99 );
      good1.show();
       
   }

}

class Goods{
    int Meng;
    String name;
    double price;
    int inventories;
    public Goods(String name,double price,int inventories){
     this.name = name ;
     this.price = price;
     this.inventories = inventories;
        
    }
  
    public void show(){
       System.out.println( name + " " + price + " " + inventories );
       
    }
  
    
 }

